package com.xdk.templatescala.common.enums;

/**
 * 返回值枚举
 *
 * @author: cwl
 * @date: 2020-09-19
 */
public enum ResultCodeEnum {

    /***
     *  服务校验返回码
     */
    TOKEN_ERROR(10000, "Token信息错误"),

    //错误码以27开通
    EXAM_PAPER_WORD_PARSE_ERROR(1000,"解析异常"),
    KNOWLEDGE_GRAPH_LEVEL_ERROR(1001,"目录层级不规范：%s"),
    KNOWLEDGE_POINT_PARENT_ERROR(1002,"此知识点父级不能为其子孙"),
    KNOWLEDGE_POINT_MOVE_ERROR(1003,"此知识点不能%s移动"),


    LOGIN_ERROR(10001, "账户密码错误"),
    ACCOUNT_ERROR(10002, "账户信息错误"),

    QUESTION_STAGE_ERROR(10010, "试题【阶段值】需要与当前页面的业务匹配"),
    FIND_QUESTION_ERROR(10015, "试题数据不存在"),
    QUESTION_CHANGE_ERROR(10016, "试题数据已变更，请刷新后操作"),
    QUESTION_REVIEW_ERROR(10017, "试题【审核状态】参数错误"),
    QUESTION_WAIT_ALLOCATE_ERROR(10018, "待分配业务【干系人至少一项是待分配】"),

    ;
    /**
     * 属性值
     */
    private Integer value;

    /**
     * 说明
     */
    private String desc;

    /**
     * 构造器
     *
     * @param value
     * @param desc
     */
    ResultCodeEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }


    public Integer getValue() {
        return value;
    }

    public String getDesc() {
        return desc;
    }
}
